import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'


import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as THREE from 'three'


const app = createApp(App)

app.use(router)
app.use(THREE)
app.use(ElementPlus,{locale: zhCn}).mount('#app')

//全局注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
